/******************************************************************************
/// @copyright Copyright (c) 2017 <dji-innovations, Corp. RM Dept.>
/// @license MIT License
/// Permission is hereby granted, free of charge, to any person obtaining a copy
/// of this software and associated documentation files (the "Software"), to deal
/// in the Software without restriction,including without limitation the rights
/// to use, copy, modify, merge, publish, distribute, sublicense,and/or sell
/// copies of the Software, and to permit persons to whom the Software is furnished
/// to do so,subject to the following conditions:
///
/// The above copyright notice and this permission notice shall be included in
/// all copies or substantial portions of the Software.
///
/// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
/// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
/// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
/// THE SOFTWARE.
*******************************************************************************/

#ifndef __I2C_OLED_H
#define __I2C_OLED_H

void OLED_WrDat(unsigned char IIC_Data);
void OLED_WrCmd(unsigned char IIC_Command);
void oled_set_pos(unsigned char x, unsigned char y);
void oled_fill(unsigned char* bmp_dat);
void oled_reflash(unsigned char* ram);
void oled_clear_screen(void);
void oled_init(void);
void oled_power_on(void);
void oled_power_off(void);

//void oled_p6x8strInv(unsigned char inv, unsigned char x, unsigned char y,const char * ch);
void oled_p16x16ch(const unsigned char x, const unsigned char y,
                   const unsigned char index, const unsigned char num,
                   const char* p);
void oled_p16x16num(const unsigned char x, const unsigned char y,
                    const unsigned char num);
void oled_printf(unsigned char x, unsigned char y, const char* fmt, ...);

extern unsigned char       GRAM[];
extern const unsigned char logoUESTC[];
extern const char          display_chinese[];
extern const char          F16x16[];

#endif
